﻿@model GoodImgSrcDTO[]
@{
    ViewBag.Title = "UploadPic";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<style>
    .layui-upload .mark_button {
        position: absolute;
        right: 15px;
    }

    .upload-img {
        position: relative;
        display: inline-block;
        width: 300px;
        height: 200px;
        margin: 0 10px 10px 0;
        transition: box-shadow .25s;
        border-radius: 4px;
        box-shadow: 0px 10px 10px -5px rgba(0, 0, 0, 0.5);
        transition: 0.25s;
        -webkit-transition: 0.25s;
        margin-top: 15px;
    }

    .layui-upload-img {
        width: 300px;
        height: 200px;
        border-radius: 4px;
    }

    .upload-img:hover {
        cursor: pointer;
        box-shadow: 0 0 4px rgba(0,0,0,1);
        transform: scale(1.2);
        -webkit-transform: scale(1.05);
    }

    .upload-img input {
        position: absolute;
        left: 0px;
        top: 0px;
    }

    .upload-img button {
        position: absolute;
        right: 0px;
        top: 0px;
        border-radius: 6px;
    }
</style>
<!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->


<div class="layui-upload ">

    <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
        预览图：
        <div class="layui-upload-list" id="imgs">
            @foreach (var goodImg in Model)
            {
                <div class="upload-img" filename="">
                    <input type="checkbox" name="" lay-skin="primary">
                    <img src=@("http://static.amortal.top/" + goodImg.ThumImgSrc) alt=@("http://static.amortal.top" + goodImg.DescImgSrc) class="layui-upload-img">
                </div>
            }
        </div>
    </blockquote>

</div>

@section FooterScript{

    <script src="~/common/layui/layui.all.js"></script>





}